package day02;

public class DoubleDemo {
    public static void main(String[] args) {
        double a=3.0,b=2.9,c=6.0,d=4.9,g=6.0,n=1.9;
        System.out.println(a-b);//期望结果0.1 实际0.10000000000000009向上”飘“
        System.out.println(c-d);//期望结果1.1 实际1.0999999999999996 向下”飘“
        System.out.println(g-n);//实际结果4.1 没”飘“
    }
}
